package sv.com.seguros.dto.asg;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import sv.com.seguros.dto.ctg.CtgCatalogo;
import sv.com.seguros.dto.sgd.SgdUsuario;

@Entity
@Table(name = "asg_pago")
public class AsgPago implements Serializable{

	private static final long serialVersionUID = -5532863553030823133L;
	
	@Id
	@Column(name = "asg_pago_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long asgPagoId;
	@Column(name = "asg_pago_cobrador", nullable = false, length = 120)
	private String asgPagoCobrador;
	@Column(name = "asg_pago_fecha", nullable = false, length = 14)
	private String asgPagoFecha;
	@Column(name = "asg_pago_total", nullable = false, length = 10)
	private String asgPagoTotal;
	@Column(name = "asg_pago_observacion", nullable = false, length = 500)
	private String asgPagoObservacion;
	@Column(name = "asg_pago_numero", nullable = false, length = 10)
	private String asgPagoNumero;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ctg_fpago_id", nullable = false)
	private CtgCatalogo ctgFormaPago;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ctg_lpago_id", nullable = false)
	private CtgCatalogo ctgLugarPago;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "sgd_usu_id", nullable = false)
	private SgdUsuario sgdUsuario;
	
	public Long getAsgPagoId() {
		return asgPagoId;
	}

	public void setAsgPagoId(Long asgPagoId) {
		this.asgPagoId = asgPagoId;
	}

	public String getAsgPagoCobrador() {
		return asgPagoCobrador;
	}

	public void setAsgPagoCobrador(String asgPagoCobrador) {
		this.asgPagoCobrador = asgPagoCobrador;
	}

	public String getAsgPagoFecha() {
		return asgPagoFecha;
	}

	public void setAsgPagoFecha(String asgPagoFecha) {
		this.asgPagoFecha = asgPagoFecha;
	}

	public String getAsgPagoTotal() {
		return asgPagoTotal;
	}

	public void setAsgPagoTotal(String asgPagoTotal) {
		this.asgPagoTotal = asgPagoTotal;
	}

	public String getAsgPagoObservacion() {
		return asgPagoObservacion;
	}

	public void setAsgPagoObservacion(String asgPagoObservacion) {
		this.asgPagoObservacion = asgPagoObservacion;
	}

	public CtgCatalogo getCtgFormaPago() {
		return ctgFormaPago;
	}

	public void setCtgFormaPago(CtgCatalogo ctgFormaPago) {
		this.ctgFormaPago = ctgFormaPago;
	}

	public CtgCatalogo getCtgLugarPago() {
		return ctgLugarPago;
	}

	public void setCtgLugarPago(CtgCatalogo ctgLugarPago) {
		this.ctgLugarPago = ctgLugarPago;
	}

	public String getAsgPagoNumero() {
		return asgPagoNumero;
	}

	public void setAsgPagoNumero(String asgPagoNumero) {
		this.asgPagoNumero = asgPagoNumero;
	}

	public SgdUsuario getSgdUsuario() {
		return sgdUsuario;
	}

	public void setSgdUsuario(SgdUsuario sgdUsuario) {
		this.sgdUsuario = sgdUsuario;
	}
	
}
